<?php
session_start();
include '../../operations/connection.php';

$idcomp = $_REQUEST['idcomp'];
$newlang = $_REQUEST['newlang'];

if ($_REQUEST['newlang'] == "EN") {
	include "../../value/value_en.php";
} else if($_REQUEST['newlang'] == "VN") {
	include "../../value/value_vn.php";
}
else {
	include "../../value/value_kr.php";
}

$selectpartnerbyID = mysql_query("SELECT am.PartnerID,am.PartnerName,am.DatabaseName,am.Phone,am.Email,am.Website,am.`Status`
		 FROM `ac_eli_manager` am WHERE am.Role=2 AND am.PartnerID = '$idcomp'");
$result = mysql_fetch_assoc($selectpartnerbyID);
?>

<form action="admin/partnermanage/process-add-partner-manage.php"
	onsubmit="return checkEmptyUpdate();" method="post">
	<input type="hidden" value="<?=$result[PartnerID]?>" name="idpartnercomp">
<table align="center"
	style="width: 100%; font-family: Arial, Verdana, sans-serif; font-size: 12px !important;">
	<tbody>
		<tr style="height: 21px;">
			<td><?php echo $l_doitac?>:</td>
			<td><input id="parnername" name="parnername" type="text"
				value="<?php echo $result[PartnerName]?>" size="80"
				style="height: 21px;" /></td>
			<td><span style="color: red">*</span></td>
		</tr>
		<tr style="height: 21px;">
			<td><?php echo $l_passwordLBL?> </td>
			<td><input type="password" id="password" name="password" size="80" readonly="readonly"
				style="height: 21px;" value="" /></td>
			<td><span style="color: red">*</span></td>
		</tr>
		<tr style="height: 21px;">
			<td><?php echo $l_retypepassword?> :</td>
			<td><input type="password" id="repassword" name="repassword" readonly="readonly"
				size="80" style="height: 21px;" value=""></td>
			<td><span style="color: red">*</span></td>
		</tr>
		<tr style="height: 21px;">
			<td><?php echo $l_databasename?> :</td>
			<td><input id="databasename" name="databasename" type="text"
				value="<?php echo $result[DatabaseName]?>" size="80" readonly="readonly"
				style="height: 21px;" /></td>
			<td><span style="color: red">*</span></td>
		</tr>
		<tr style="height: 21px;">
			<td><?php echo $l_email?> :</td>
			<td><input id="email" name="email" type="text"
				value="<?php echo $result[Email]?>" size="80" style="height: 21px;" />
			</td>
			<td><span style="color: red">*</span></td>
		</tr>
		<tr style="height: 21px;">
			<td><?php echo $l_phone?> :</td>
			<td><input id="phone" name="phone" type="text"
				value="<?php echo $result[Phone]?>" size="80" style="height: 21px;" />
			</td>
			<td></td>
		</tr>
		<tr style="height: 21px;">
			<td><?php echo $l_Website?> :</td>
			<td><input id="website" name="website" type="text"
				value="<?php echo $result[Website]?>" size="80"
				style="height: 21px;" /></td>
			<td></td>
		</tr>
	</tbody>
</table>

<br />
<div style="text-align: center;">
	<input name="update" id="update" value="<?php echo $l_update?>" class="buttonNormal" type="submit" /> 
	<input name="delete" id="delete" value="<?php echo $l_delete?>" class="buttonNormal" type="button"
	 onclick="if(confirm('Are you sure?')){ deletecomp('<?=$result[PartnerID]?>',this); return true;}else{return false;}"/> 
	<input name="register" id="register" value="<?php echo $l_register?>" class="buttonNormalDisable" type="button" /> 
	<input name="reset" value="<?php echo $l_reset?>"
		class="buttonNormal" type="reset" onclick="resetchildPartner();" /> <br />
</div>
</form>
